import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      name: "Home",
      component: () => import("../views/Home.vue")
    },
    {
      path: "/editer",
      component: () => import("../layout/EditerLayout.vue"),
      children: [
        {
          path: "index",
          name: "Editer",
          component: () => import("../views/Editer.vue")
        },
        {
          path: "outline",
          name: "Outline",
          component: () => import("../views/Outline.vue")
        },
        {
          path: "configuration",
          name: "Configuration",
          component: () => import("../views/Configuration.vue")
        },
        {
          path: "characters",
          name: "Characters",
          component: () => import("../views/Characters.vue")
        },
        {
          path: "timeline",
          name: "Timeline",
          component: () => import("../views/Timeline.vue")
        }
      ]
    }
  ]
});

export default router;
